<template>
	<view class="wallet-main">
		<view class="wallet-box">
			<view class="tit">
				我的收益
			</view>
			<view class="wallet-data">
				<view class="wallet-tit">
					可提现
				</view>
				<view class="wallet-nums">
					<text style="font-size: 12px;">￥</text>999.00
				</view>
			</view>
			<view class="wallet-option">
				<view class="wallet-option-mx" @click="gotoPath('/pages/walletDetail/walletDetail')">
					明细<uni-icons type="right" size="16"></uni-icons>
				</view>
				
				<view class="wallet-option-gz">
					规则<uni-icons type="right" size="16"></uni-icons>
				</view>
			</view>
		</view>
		
		<view class="wallet-form">
			<view class="wallet-form-tit">
				<text class="tit">申请提现</text>
				<text class="all">全部提现</text>
			</view>
			<view class="wallet-form-input">
				<input type="text" value="" placeholder="请输入提现金额"/>
			</view>
			<view class="wallet-tips">
				(支付平台需收取6%手续费)
			</view>
		</view>
		
		<view class="wallet-way">
			<view class="tit">
				选择提现方式
			</view>
			<view class="wayItem">
				<view class="wayTit">
					<uni-icons type="weixin" size="20" color="#42b983"></uni-icons>
					<text style="margin-left: 4px;">提现至微信</text>
				</view>
				<view class="wayIcon">
					<uni-icons type="checkbox-filled" size="20" color="red"></uni-icons>
				</view>
			</view>
		</view>
		
		<view class="wallet-btn">
			确认提现
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			gotoPath(url){
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.wallet-main{
		box-sizing: border-box;
		padding: 20rpx;
		.wallet-box{
			background-color: #fff;
			border-radius: 16rpx;
			box-sizing: border-box;
			padding: 30rpx;
			color: #444;
			
			.wallet-data{
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				margin: 60rpx 0px;
				.wallet-tit{
					margin-bottom: 10rpx;
				}
				.wallet-nums{
					font-size: 40rpx;
					font-weight: 700;
				}
			}
			
			.wallet-option{
				display: flex;
				align-items: center;
				justify-content: space-between;
				font-size: 26rpx;
			}
		}
		
		.wallet-form{
			margin-top: 50rpx;
			.wallet-form-tit{
				display: flex;
				justify-content: space-between;
				.tit{
					font-size: 28rpx;
					font-weight: 700;
				}
				.all{
					font-size: 26rpx;
					color: red;
				}
			}
			.wallet-form-input{
				height: 80rpx;
				background-color: #fff;
				border-radius: 4px;
				display: flex;
				align-items: center;
				box-sizing: border-box;
				padding: 0px 20rpx;
				margin: 20rpx 0px;
			}
			.wallet-tips{
				color: #999;
				font-size: 24rpx;
			}
		}
		
		.wallet-way{
			margin-top: 40rpx;
			.tit{
				font-size: 28rpx;
				font-weight: 700;
			}
			.wayItem{
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 100rpx;
				color: #444;
				padding: 0px 20rpx;
				.wayTit{
					
				}
				.wayIcon{
					
				}
			}
		}
		
		.wallet-btn{
			background-color: red;
			color: #fff;
			height: 80rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 4px;
			margin-top: 60rpx;
		}
	}
</style>
